GtkLabel: better treatment for ellipsized links
authorMatthias Clasen <mclasen@redhat.com>
Thu, 4 Sep 2014 00:49:44 +0000 (20:49 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 4 Sep 2014 02:23:08 +0000 (22:23 -0400)
commit1cddd14ab4f9d420b92ea091f247561697f67458
treed65517a38a58e038ba9ef9d2983eb307101fbf93
parent0ff5cf7dafbbfda06ccdb60a57804b1823cbc6e0
GtkLabel: better treatment for ellipsized links

When links are entirely hidden in an ellipsis, don't let
them be activated by clicking and skip them when moving
the focus around.

This commit depends on enhancements in pango 1.36.7 which
make it possible to find the ellipsed runs in a PangoLayout.
With older pango, things will work the same way as before.

https://bugzilla.gnome.org/show_bug.cgi?id=668258
gtk/gtklabel.c